package com.fzshang.commen.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.ToString;

import java.io.Serializable;

/**
 * <p>
 * 账户表
 * </p>
 *
 * @author 冯政尚
 * @since 2020-01-30
 */
@ToString
@ApiModel(value="User对象", description="账户表")
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId("id")
    private Long id;

    @ApiModelProperty(value = "账户")
    @TableField("account")
    private String account;

    @ApiModelProperty(value = "密码")
    @TableField("pass_word")
    private String passWord;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Long createTime;

    @ApiModelProperty(value = "商家名称")
    @TableField("name_of_merchant")
    private String nameOfMerchant;

    @ApiModelProperty(value = "商家联系人")
    @TableField("merchant_contact")
    private String merchantContact;

    @ApiModelProperty(value = "商家联系电话")
    @TableField("phone")
    private String phone;



    @ApiModelProperty(value = "入驻费")
    @TableField("settlement_fee")
    private String settlementFee;

    @TableField(exist = false)
    private Integer money;

    @ApiModelProperty(value = "商家地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "是否收费")
    @TableField("charge")
    private Integer charge;

    @ApiModelProperty(value = "营业执照")
    @TableField("url")
    private String url;


    @ApiModelProperty(value = "审核状态  1未审核 2通过 3失败")
    @TableField("state")
    private Integer state;

    @ApiModelProperty(value = "身份证号")
    @TableField("id_number")
    private String idNumber;

    @TableField(exist = false)
    private Role roles;

    @TableField(exist = false)
    private Long roleId;

    @ApiModelProperty(value = "年月")
    @TableField(exist = false)
    private String time ;

    @ApiModelProperty(value = "多图片")
    @TableField(exist = false)
    private String duo ;

    @ApiModelProperty(value = "支付状态")
    @TableField(exist = false)
    private Integer orderState;

    public Integer getOrderState() {
        return orderState;
    }

    public void setOrderState(Integer orderState) {
        this.orderState = orderState;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public Integer getMoney() {
        return money;
    }

    public void setMoney(Integer money) {
        this.money = money;
    }

    public String getSettlementFee() {
        return settlementFee;
    }

    public void setSettlementFee(String settlementFee) {
        this.settlementFee = settlementFee;
    }

    public String getDuo() {
        return duo;
    }

    public void setDuo(String duo) {
        this.duo = duo;
    }

    public Integer getCharge() {
        return charge;
    }

    public void setCharge(Integer charge) {
        this.charge = charge;
    }



    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public Role getRoles() {
        return roles;
    }

    public void setRoles(Role roles) {
        this.roles = roles;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }
    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }
    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }
    public String getNameOfMerchant() {
        return nameOfMerchant;
    }

    public void setNameOfMerchant(String nameOfMerchant) {
        this.nameOfMerchant = nameOfMerchant;
    }
    public String getMerchantContact() {
        return merchantContact;
    }

    public void setMerchantContact(String merchantContact) {
        this.merchantContact = merchantContact;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
